package com.jy.adscm.hospital.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.jy.adscm.core.interceptor.DateJsonDeserializer;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 意向信息
 * </p>
 *
 * @author yyy
 * @since 2019-01-16
 */
public class JyHospitalIntention implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 意向信息
     */
    private String intentionMsg;
    /**
     * 提供者
     */
    private String provider;
    /**
     * 提供者科室
     */
    private String providerOffice;
    /**
     * 提供者职务
     */
    private String providerDuties;
    /**
     * 提供者电话
     */
    private String providerTel;
    /**
     * 提供者微信
     */
    private String providerWx;
    /**
     * 填写单位
     */
    private Integer inputUnit;
    @TableField(exist = false)
    private String inputUnitDesc;
    /**
     * 录入单位类型（厂商 经销商）
     */
    private Integer inputUnitType;
    /**
     * 输入用户
     */
    private Integer inputUserId;
    @TableField(exist = false)
    private String inputUserName;
    /**
     * 录入时间
     */
    private Date inputTime;
    /**
     * 关联的医院基础信息表ID
     */
    private Long baseId;
    /**
     * 关联的报单ID，如果这些数据是由经销商报单过程填写的话，就有这个formId，厂商填写的就没有，空的
     */
    private Long formId;

    public Long getFormId() {
        return formId;
    }

    public void setFormId(Long formId) {
        this.formId = formId;
    }
    public String getInputUnitDesc() {
        return inputUnitDesc;
    }

    public void setInputUnitDesc(String inputUnitDesc) {
        this.inputUnitDesc = inputUnitDesc;
    }

    public String getInputUserName() {
        return inputUserName;
    }

    public void setInputUserName(String inputUserName) {
        this.inputUserName = inputUserName;
    }
    public Long getBaseId() {
        return baseId;
    }

    public void setBaseId(Long baseId) {
        this.baseId = baseId;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIntentionMsg() {
        return intentionMsg;
    }

    public void setIntentionMsg(String intentionMsg) {
        this.intentionMsg = intentionMsg;
    }

    public String getProvider() {
        return provider;
    }

    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getProviderOffice() {
        return providerOffice;
    }

    public void setProviderOffice(String providerOffice) {
        this.providerOffice = providerOffice;
    }

    public String getProviderDuties() {
        return providerDuties;
    }

    public void setProviderDuties(String providerDuties) {
        this.providerDuties = providerDuties;
    }

    public String getProviderTel() {
        return providerTel;
    }

    public void setProviderTel(String providerTel) {
        this.providerTel = providerTel;
    }

    public String getProviderWx() {
        return providerWx;
    }

    public void setProviderWx(String providerWx) {
        this.providerWx = providerWx;
    }

    public Integer getInputUnit() {
        return inputUnit;
    }

    public void setInputUnit(Integer inputUnit) {
        this.inputUnit = inputUnit;
    }

    public Integer getInputUnitType() {
        return inputUnitType;
    }

    public void setInputUnitType(Integer inputUnitType) {
        this.inputUnitType = inputUnitType;
    }

    public Integer getInputUserId() {
        return inputUserId;
    }

    public void setInputUserId(Integer inputUserId) {
        this.inputUserId = inputUserId;
    }

    public Date getInputTime() {
        return inputTime;
    }

    @JsonDeserialize(using = DateJsonDeserializer.class)
    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    @Override
    public String toString() {
        return "JyHospitalIntention{" +
        "id=" + id +
        ", intentionMsg=" + intentionMsg +
        ", provider=" + provider +
        ", providerOffice=" + providerOffice +
        ", providerDuties=" + providerDuties +
        ", providerTel=" + providerTel +
        ", providerWx=" + providerWx +
        ", inputUnit=" + inputUnit +
        ", inputUnitType=" + inputUnitType +
        ", inputUserId=" + inputUserId +
        ", inputTime=" + inputTime +
        "}";
    }
}
